﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>数据字典管理 </title>
    <link href="Styles/css.css" rel="stylesheet" type="text/css" />
    <link href="Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script src="Scripts/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
    <script src="Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tree").jstree({
                "json_data": {
                    "data": [
	
    "组织业态",
    "商户投诉科目",  
    "客户类型",  
    "其他投诉科目", 
    "无效判定原因",  
    "商户类型", 
    "消费者投诉科目",  
    "投诉来源",  
    "不回访原因"
]
                },
                "themes": {
                    "theme": "classic",
                    "dots": true,
                    "icons": true
                },
                "plugins": ["themes", "json_data", "cookies", "ui"]
            }).bind("select_node.jstree", function (e, data) {

                var dk = data.rslt.obj.attr("id");
                var name = data.rslt.obj.attr("name");

                var dkvalue = $("#dictionaryKey").val();
                if (dkvalue != dk) {
                    $("#dictionaryKey").val(dk);
                    $("#dictionaryName").val(name);
                    $("#pageNum").val(1);
                    $("#form1").submit();
                    //   $("#AspNetPager1").CurrentPageIndex = 1;
                }
            });

        });

        //        function openWin(url, uuid) {
        //            url = '/Admin/' + url + '?uuid=' + uuid + '&dictionaryKey=' + $("#dictionaryKey").val() + '&dictTypeName=' + encodeURIComponent($("#dictionaryName").val());
        //            //alert(url);
        //            var s = window.showModalDialog(url, '字典管理', "dialogWidth=860px;dialogHeight=400px;toolbar = no;status = no;scrollbars=no");
        //            if (s && s == 1) {
        //                {
        //                    location.href = location.href + "?" + Math.random() + "&flag=0";
        //                }
        //            }
        //        }
       
    </script>
</head>
<body style="overflow-x: hidden; background: #EFF3FF;">
    <form method="post" action="DictionaryManager.htm" id="form1">
    <div id="tree" class="tree" style="background: #EFF3FF; width: 20%; float: left;
        overflow-y: auto;">
    </div>
    <div style="width: 75%; float: right; border: 1px solid #82AFE8">
        <div>
            <table width="100%">
                <tr>
                    <td width="8%">
                        字典名称：
                    </td>
                    <td width="30%">
                        <input name="txtName" type="text" id="txtName" style="width: 95%;" />
                    </td>
                    <td width="10%">
                        <input style="border-style: none; border-color: inherit; border-width: 0px; background-image: url('Images/search.gif');
                            width: 100px; height: 24px;" type="button" value="  " />
                    </td>
                    <td align="right">
                        <input type="button" id="btnAdd" class="button" value="添加" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active"
            style="height: 100%;" role="tabpanel">
            <div class="cxlb_2">
                <table width="100%" class="tablist">
                    <thead>
                        <tr>
                            <th width="20%">
                                字典值
                            </th>
                            <th width="20%">
                                上级值标识
                            </th>
                            <th width="15%">
                                是否默认值
                            </th>
                            <th width="10%">
                                顺序
                            </th>
                            <th width="15%">
                                录入时间
                            </th>
                            <th width="100">
                                操作
                            </th>
                        </tr>
                    </thead>
                    <tbody id="tab">
                    </tbody>
                </table>
                <script type="text/javascript">
<!--
                    var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                    function pageLoad() {
                        for (i = 1; i < Ptr.length + 1; i++) {
                            Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                        }
                    }
                    window.onload = pageLoad;
                    for (var i = 0; i < Ptr.length; i++) {
                        Ptr[i].onmouseover = function () {
                            this.tmpClass = this.className;
                            this.className = "t3";

                        };
                        Ptr[i].onmouseout = function () {
                            this.className = this.tmpClass;
                        };
                    }
//-->
                </script>
            </div>
            <div>
                <div id="ErrorPanel">
                    <div class="error" style="width: 100%">
                        <img src="Images/error.png" width="88" height="85" align="absmiddle" alt="" />对不起，没有您要查询的数据！</div>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="dictionaryKey" id="dictionaryKey" />
    <input type="hidden" name="hidCookUuid" id="hidCookUuid" />
    <input type="hidden" name="hidType" id="hidType" value="select" />
    <input type="hidden" name="pageNum" id="pageNum" value="1" />
    <input name="dictionaryName" type="hidden" id="dictionaryName" />
    <input name="selectId" type="hidden" id="selectId" />
    <input type="hidden" name="hidfromSubmit" value="1">
    <span id="lblScript">
        <script>            $.cookie('jstree_select', '')</script>
    </span>
    </form>
</body>
</html>
